import request from '@/utils/request'
import Vue from 'vue'
// 获取数据大屏信息
export const queryOrderReportDataScreen = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.index,
        method: 'post',
        data,
    })
}

// 获取首页数据
export const queryOrderReportDataScreenStatistics = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.statistics,
        method: 'post',
        data,
    })
}
export const queryOrderReportDataScreenReport = data => {
    return request({
        url: Vue.prototype.$api.StatementList.getReportIndex,
        method: 'post',
        data,
    })
}
// getRoleType
export const getRoleType = () => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.getRoleType,
        method: 'post',
    })
}
// get_page_path_new
export const getPagePathNew = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.get_page_path_new,
        method: 'post',
        data,
    })
}
// new_statistics
export const newStatistics = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.new_statistics,
        method: 'post',
        data,
    })
}
// getHistoryPerson
export const getHistoryPerson = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.getHistoryPerson,
        method: 'post',
        data,
    })
}
// getAdList
export const getAdList = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.getAdList,
        method: 'post',
        data,
    })
}
// exportCost
export const exportCost = data => {
    return request({
        url: Vue.prototype.$api.orderReportDataScreen.exportCost,
        method: 'post',
        data,
        responseType: 'blob',
    })
}